﻿using Newtonsoft.Json;
using System;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 退货退款查询
	/// </summary>
	[JsonObject(MemberSerialization.OptOut)]
	public class TransferQuery : PageQuery {
		public TransferQuery() { }
		/// <summary>
		/// 商户id
		/// </summary>
		public long merchant_id { get; set; }
		/// <summary>
		/// 商户编号
		/// </summary>
		public string merchant_no { get; set; }
		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel pay_channel { get; set; }
		/// <summary>
		/// 单号:提现单号/提现第三方单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 状态：1提现申请，2完成，3转账中，4失败
		/// </summary>
		public TransferStatus status { get; set; }
		/// <summary>
		/// 下单时间-开始
		/// </summary>
		public DateTime? start_time { get; set; }
		/// <summary>
		/// 下单时间-结束
		/// </summary>
		public DateTime? end_time { get; set; }
		/// <summary>
		/// 姓名
		/// </summary>
		public string name { get; set; }
		/// <summary>
		/// 手机号
		/// </summary>
		public string mobile { get; set; }
	}
	/// <summary>
	/// 批处理提现
	/// </summary>
	[JsonObject(MemberSerialization.OptOut)]
	public class TransferBatchQuery : PageQuery {
		public TransferBatchQuery() { }

		/// <summary>
		/// 批号
		/// </summary>
		public string batch_no { get; set; }
		/// <summary>
		/// 提现批处理状态：1生成文件，2已通知，3已回盘，4已处理
		/// </summary>
		public TransferBatchStatus status { get; set; }
	}
}